Optimal. Leaf size=100 \[ \frac {a^2 \cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (x d+\frac {a d}{b}\right )}{b^3}+\frac {a^2 \sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (x d+\frac {a d}{b}\right )}{b^3}-\frac {a \sinh (c+d x)}{b^2 d}-\frac {\cosh (c+d x)}{b d^2}+\frac {x \sinh (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.26, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.412, Rules used = {6742, 2637, 3296, 2638, 3303, 3298, 3301} \[ \frac {a^2 \cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (x d+\frac {a d}{b}\right )}{b^3}+\frac {a^2 \sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (x d+\frac {a d}{b}\right )}{b^3}-\frac {a \sinh (c+d x)}{b^2 d}-\frac {\cosh (c+d x)}{b d^2}+\frac {x \sinh (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 2638
Rule 3296
Rule 3298
Rule 3301
Rule 3303
Rule 6742
Rubi steps
\begin {align*} \int \frac {x^2 \cosh (c+d x)}{a+b x} \, dx &=\int \left (-\frac {a \cosh (c+d x)}{b^2}+\frac {x \cosh (c+d x)}{b}+\frac {a^2 \cosh (c+d x)}{b^2 (a+b x)}\right ) \, dx\\ &=-\frac {a \int \cosh (c+d x) \, dx}{b^2}+\frac {a^2 \int \frac {\cosh (c+d x)}{a+b x} \, dx}{b^2}+\frac {\int x \cosh (c+d x) \, dx}{b}\\ &=-\frac {a \sinh (c+d x)}{b^2 d}+\frac {x \sinh (c+d x)}{b d}-\frac {\int \sinh (c+d x) \, dx}{b d}+\frac {\left (a^2 \cosh \left (c-\frac {a d}{b}\right )\right ) \int \frac {\cosh \left (\frac {a d}{b}+d x\right )}{a+b x} \, dx}{b^2}+\frac {\left (a^2 \sinh \left (c-\frac {a d}{b}\right )\right ) \int \frac {\sinh \left (\frac {a d}{b}+d x\right )}{a+b x} \, dx}{b^2}\\ &=-\frac {\cosh (c+d x)}{b d^2}+\frac {a^2 \cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (\frac {a d}{b}+d x\right )}{b^3}-\frac {a \sinh (c+d x)}{b^2 d}+\frac {x \sinh (c+d x)}{b d}+\frac {a^2 \sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (\frac {a d}{b}+d x\right )}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.31, size = 89, normalized size = 0.89 \[ \frac {a^2 d^2 \cosh \left (c-\frac {a d}{b}\right ) \text {Chi}\left (d \left (\frac {a}{b}+x\right )\right )+a^2 d^2 \sinh \left (c-\frac {a d}{b}\right ) \text {Shi}\left (d \left (\frac {a}{b}+x\right )\right )+b (d (b x-a) \sinh (c+d x)-b \cosh (c+d x))}{b^3 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 156, normalized size = 1.56 \[ -\frac {2 \, b^{2} \cosh \left (d x + c\right ) - {\left (a^{2} d^{2} {\rm Ei}\left (\frac {b d x + a d}{b}\right ) + a^{2} d^{2} {\rm Ei}\left (-\frac {b d x + a d}{b}\right )\right )} \cosh \left (-\frac {b c - a d}{b}\right ) - 2 \, {\left (b^{2} d x - a b d\right )} \sinh \left (d x + c\right ) + {\left (a^{2} d^{2} {\rm Ei}\left (\frac {b d x + a d}{b}\right ) - a^{2} d^{2} {\rm Ei}\left (-\frac {b d x + a d}{b}\right )\right )} \sinh \left (-\frac {b c - a d}{b}\right )}{2 \, b^{3} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 148, normalized size = 1.48 \[ \frac {a^{2} d^{2} {\rm Ei}\left (\frac {b d x + a d}{b}\right ) e^{\left (c - \frac {a d}{b}\right )} + a^{2} d^{2} {\rm Ei}\left (-\frac {b d x + a d}{b}\right ) e^{\left (-c + \frac {a d}{b}\right )} + b^{2} d x e^{\left (d x + c\right )} - b^{2} d x e^{\left (-d x - c\right )} - a b d e^{\left (d x + c\right )} + a b d e^{\left (-d x - c\right )} - b^{2} e^{\left (d x + c\right )} - b^{2} e^{\left (-d x - c\right )}}{2 \, b^{3} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.11, size = 184, normalized size = 1.84 \[ -\frac {{\mathrm e}^{-d x -c} x}{2 d b}+\frac {{\mathrm e}^{-d x -c} a}{2 d \,b^{2}}-\frac {{\mathrm e}^{-d x -c}}{2 d^{2} b}-\frac {{\mathrm e}^{\frac {d a -c b}{b}} \Ei \left (1, d x +c +\frac {d a -c b}{b}\right ) a^{2}}{2 b^{3}}+\frac {{\mathrm e}^{d x +c} x}{2 d b}-\frac {{\mathrm e}^{d x +c}}{2 d^{2} b}-\frac {a \,{\mathrm e}^{d x +c}}{2 d \,b^{2}}-\frac {{\mathrm e}^{-\frac {d a -c b}{b}} \Ei \left (1, -d x -c -\frac {d a -c b}{b}\right ) a^{2}}{2 b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.39, size = 233, normalized size = 2.33 \[ -\frac {1}{4} \, d {\left (\frac {2 \, a^{2} {\left (\frac {e^{\left (-c + \frac {a d}{b}\right )} E_{1}\left (\frac {{\left (b x + a\right )} d}{b}\right )}{b} + \frac {e^{\left (c - \frac {a d}{b}\right )} E_{1}\left (-\frac {{\left (b x + a\right )} d}{b}\right )}{b}\right )}}{b^{2} d} - \frac {2 \, a {\left (\frac {{\left (d x e^{c} - e^{c}\right )} e^{\left (d x\right )}}{d^{2}} + \frac {{\left (d x + 1\right )} e^{\left (-d x - c\right )}}{d^{2}}\right )}}{b^{2}} + \frac {\frac {{\left (d^{2} x^{2} e^{c} - 2 \, d x e^{c} + 2 \, e^{c}\right )} e^{\left (d x\right )}}{d^{3}} + \frac {{\left (d^{2} x^{2} + 2 \, d x + 2\right )} e^{\left (-d x - c\right )}}{d^{3}}}{b} + \frac {4 \, a^{2} \cosh \left (d x + c\right ) \log \left (b x + a\right )}{b^{3} d}\right )} + \frac {1}{2} \, {\left (\frac {2 \, a^{2} \log \left (b x + a\right )}{b^{3}} + \frac {b x^{2} - 2 \, a x}{b^{2}}\right )} \cosh \left (d x + c\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {x^2\,\mathrm {cosh}\left (c+d\,x\right )}{a+b\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{2} \cosh {\left (c + d x \right )}}{a + b x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________